<?php
/*
Plugin Name: LooK.bz URL Shortner
Plugin URI: http://www.look.bz/wp-plugin/
Description: Shortens URL's
Author: Vas Fedorov
Version: 0.1
Author http://www.myopenfolder.com
*/
/*  Copyright 2011  Vas Fedorov  (email : info@myopenfolder.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

*/

wp_enqueue_script('lookbz_url_shortener', '/wp-content/plugins/lookbz_url_shortener/look-bz.jquery.js');

function LooKbz() { 
 return '
  	<input type="text" id="lookbz_long_url" value="post\'s long url..." size="30"/>
	<br />
	<input type="submit" id="lookbz_url_submit" value="Shorten Post\'s URL Now..." />
	<br />
	<div id="lookbz_short_url" ><p>Post\'s Short URL</p></div> 
 ';
}

function widget_LooKbz($arguments) {

  echo $arguments['before_widget'] . $arguments['before_title']; 
  _e("LooK.bz URL Shortener");
  echo $arguments['after_widget'] . LooKbz() . $arguments['after_title'];
}

function LooKbz_init() {
  register_sidebar_widget(__('LooKbz'), 'widget_LooKbz');     
}

add_action("plugins_loaded", "LooKbz_init");



?>